package com.shengchao.examstar.rpc.question.api;

import cn.hutool.json.JSONArray;
import com.shengchao.examstar.rpc.question.base.PageResult;
import com.shengchao.examstar.rpc.question.req.IndexKnowledgeReq;
import com.shengchao.examstar.rpc.question.resp.IndexKnowledge;
import com.shengchao.examstar.rpc.question.resp.IndexQuestionStatistics;

import java.util.List;


public interface IQuestionIndexRpc {

    /**
     * 获取首页题目统计信息
     */
    IndexQuestionStatistics getQuestionStatistics(Long specificationType) throws Exception;

    /**
     * 获取知识点
     */
    PageResult<IndexKnowledge> getKnowledge(IndexKnowledgeReq indexKnowledgeReq) throws Exception;
    /**
     * 获取知识点
     */
    List<IndexKnowledge> getKnowledgeByPointDtos(JSONArray knowledgePointDtos) throws Exception;
    /**
     * 根据知识点id获取知识点信息
     */
    List<IndexKnowledge> getIndexKnowledgeById(List<Long> knowledgePointIds);

}
